package com.sinoeyes.controller.system;

import com.sinoeyes.common.core.controller.BaseController;
import com.sinoeyes.common.core.page.RestPageResult;
import com.sinoeyes.common.result.Result;
import com.sinoeyes.system.filter.SysOperLogFilter;
import com.sinoeyes.system.service.ISysOperLogService;
import com.sinoeyes.system.vo.SysOperLogVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 操作日志记录
 * 
 * @author ruoyi
 */
@RestController
@RequestMapping("/monitor/operlog")
@Api(value = "操作日志记录 API", tags = {"操作日志记录"})
public class SysOperlogController extends BaseController
{
    @Autowired
    private ISysOperLogService operLogService;

    @PreAuthorize("@ss.hasPermi('monitor:operlog:list')")
    @GetMapping("/list")
    @ApiOperation("操作日志记录分页数据")
    public Result<RestPageResult<SysOperLogVo>> list(SysOperLogFilter operLogFilter)
    {
        RestPageResult<SysOperLogVo> restPageResult = operLogService.selectOperLogList(operLogFilter);
        return Result.success(restPageResult);
    }
}
